<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Issue 130 Testcase - jWYSIWYG</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="../lib/blueprint/screen.css" media="screen, projection"/>
<link rel="stylesheet" type="text/css" href="../lib/blueprint/print.css" media="print"/>
<!--[if lt IE 8]><link rel="stylesheet" href="../lib/blueprint/ie.css" type="text/css" media="screen, projection" /><![endif]-->
<link rel="stylesheet" type="text/css" href="../../jquery.wysiwyg.css"/>
<script type="text/javascript" src="../lib/jquery.js"></script>
<script type="text/javascript" src="../../jquery.wysiwyg.js"></script>
<script type="text/javascript">
(function ($) {
	$(document).ready(function () {
		$("textarea").wysiwyg({
			controls: {
				html: { visible: true }
			}
		});

		$("#run").click(function (event) {
			$("textarea").wysiwyg("insertHtml", "<p style='color: red;'>asd asdkjhkjhasdlkj asdkj</p>");
		});
	});
})(jQuery);
</script>
</head>

<body><div class="container">
<h1>jWYSIWYG</h1>
<h2><a href="http://github.com/akzhan/jwysiwyg/issues/130">Issue 130</a>: Testcase</h2>

<input type="button" value="Run test" id="run"/>

<table>
<tr>
<td><textarea name="a">&lt;p>aaaa&lt;/p>&lt;p style="color: green">aaaa&lt;/p>&lt;p>a&lt;b>aa&lt;/b>a&lt;/p></textarea></td>
<td><textarea name="b">&lt;p>bbbb&lt;/p>&lt;p style="color: green">bbbb&lt;/p>&lt;p>b&lt;b>bb&lt;/b>b&lt;/p></textarea></td>
</tr>
</table>

</div></body>
</html>
